package com.chickenhouse.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chickenhouse.pojo.Variety;
import com.chickenhouse.repository.VarietyRepository;
import com.chickenhouse.service.VarietyService;
@Service
public class VarietyServiceImpl implements VarietyService{
	@Resource
	private VarietyRepository varietyRepository;
	
	
	public List<Variety> queryVariety() {
		return varietyRepository.queryVariety();
	}


	public int insertVariety(Variety var) {
		return varietyRepository.insertVariety(var);
	}


	public int updateVariety(Variety var) {
		return varietyRepository.updateVariety(var);
	}


	public int deleteVariety(Integer id) {
		return varietyRepository.deleteVariety(id);
	}
	
	
	
}
